package com.hontech.bread.ui.parts

import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.FrameLayout
import com.hontech.bread.R
import com.hontech.bread.ui.view.LabelTextView
import com.hontech.bread.utils.AppTask
import com.hontech.bread.utils.log
import com.hontech.bread.utils.macAddr
import com.hontech.bread.utils.stringById


class SmsParts(context: Context, attrs: AttributeSet) : FrameLayout(context, attrs) {

    init {
        val view = LayoutInflater.from(context).inflate(R.layout.parts_sms, this)
        val mac = view.findViewById<LabelTextView>(R.id.id_sms_tv_mac_addr)

        AppTask.post {
            log("MAC${stringById(R.string.t1733460848_443)}:${macAddr}")
            mac.set(macAddr)
        }
    }


}
























